import 'package:flutter/material.dart';

String getImgPath(String name, {String format = 'png'}) {
  return 'assets/images/$name.$format';
}

Widget loadAssetImage(String name,
    {double? width,
    double? height,
    BoxFit? fit,
    Color? color,
    String format = 'png'}) {
  return Image.asset(
    getImgPath(name, format: format),
    height: height,
    width: width,
    fit: fit,
    color: color,
  );
}
